﻿@model NextAction.WebUI.Models.GtdTaskIndexViewModel           
@{
    Layout = null;

    var createTaskUrl = Url.Action("Create", "Task", new { Model.BucketType });
    var taskDataUrl = @Url.Action("GtdTaskListData", "Task", new { Model.BucketType });
}

<ol id="task_list_params" 
    task_type="@Model.BucketType.ToString()" 
    create_task_url="@createTaskUrl"
    task_data_url="@taskDataUrl">
    @foreach (var p in Model.GtdTasks) 
    {
        Html.RenderPartial("GtdTaskRow", p);
    }
</ol>